package com.share.inter;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @desc:
 * @author:caifan
 * @date:2021/5/26
 */
public class MainType {
    public static void main(String[] args) {
        OneType one = new DelegateType(new LongType());
        Object value = one.getValue();
        System.out.println("longType:" + value);

        List values = one.getValues();
        System.out.println("longTypeList:" + values.toString());

        OneType two = new DelegateType(new DateType());
        Date value1 = (Date) two.getValue();
        System.out.println("DateType:" + value1);

        List values2 = two.getValues();
        System.out.println("dateTypeList:" + values2.toString());
    }
}
